package com.test.Exception;

import java.io.File;
import java.io.IOException;

public class FileError {
    public static void main(String[] args) {
        File file = new File("my.txt");
        try {
            file.createNewFile();
        }catch (IOException e) {
            e.printStackTrace();
        }

        try {
            int[] arr = new int[Integer.MAX_VALUE];
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }

}
